package com.ht.WeNas.data.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "文件容器信息")
@TableName("tb_fb_info")
public class FbInfo {
    @Schema(description = "容器id")
    Long id;
    
    @Schema(description = "容器名称")
    String name;
    
    @Schema(description = "容器根路径")
    String rootPath;
    
    @Schema(description = "容器类型")
    String type;
    
    @Schema(description = "封面链接")
    String coverLink;
    
    @Schema(description = "创建者id")
    @TableField(fill = FieldFill.INSERT)
    Long creatorId;

    @Schema(description = "是否可用")
    Boolean available;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime updateTime;
}
